:root{
    --gradient-primary: linear-gradient(135deg, #faa040, #f87f02);
    --primary: #af2129;
    --primary-dark: #f87f02;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --border: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --sidebar-width: 240px;
    --toc-width: 240px;
    --shadow-sm: 0 2px 4px rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);

    --primary-gradient: linear-gradient(135deg, #f8fafc, #e2e8f0);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
    --gradient-info: linear-gradient(135deg, #44b3ef, #2675dc);


    --border-width:1;
    --border-color: #dee2e6;
    --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
    --background-color: #f6f9ff;
    --background-color-dark: #2c3e50;
    --default-color: #212529bf;
    --heading-color: #545454;
    --accent-color: #e96b56;
    --accent-color-transparent: #e96b5617;
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
    --font-weight:600;

}
/* Side Navigation */
.side-nav {
    width: var(--sidebar-width);
    height: calc(100vh - 66px);
    position: fixed;
    left: 0;
    top: 66px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    z-index: 996;
    transition: all 0.3s;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.nav-header {

    color: gainsboro !important;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    gap: 1rem;
}

.nav-header::before {
    content: '';

    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.2), transparent 70%);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-header h1 {
    font-size: 1.25rem;
    margin: 0;
    color: white;
    font-weight: 700;
}
.form-select:focus{
    border-color: var(--primary) !important;
    box-shadow: none;
}
.nav-search {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}
.sidebar {
    position: fixed;

    left: 0;
    bottom: 0;
    width: 240px;
    z-index: 996;
    transition: all 0.3s;

    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    /*box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);*/
    border: 1px solid rgba(0, 0, 0, 0.175);
}
#aside_stats {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 290px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;

    display: block;
    scrollbar-color: #aab7cf transparent;
    /*box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);*/
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.175);
}
.btn_right_null{
    right: 290px !important;
    transition: left 0.3s ease;
}
#aside_stats.active {
    right: 0px;
}


.toggle-sidebar-btn-aside {
    content: "☰"; /* Ikona menu */
    position: absolute;
    top: 65px;
    right: 0px; /* Ustawienie poza sidebar */
    width: 40px;
    height: 40px;
    background: #ff6600;
    color: white;
    border: thin;
    visibility: hidden;
    text-align: center;
    font-size: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: right 0.3s ease;
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}
.toggle-sidebar-btn{
    right: 0px;
    visibility: hidden;
}
.header .toggle-sidebar-btn {
    font-size: 32px;
    padding-left: 10px;
    cursor: pointer;
    color: #012970;
}
@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
    .toggle-sidebar-btn{
        visibility: visible;
    }
}
@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }

    #aside_stats{
        right: -300px;
    }
    .toggle-sidebar-btn-aside{

        visibility: visible;
    }

}
.sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-family: var(--heading-font);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--accent-color);
    font-weight: 600;
    margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
    font-family: var(--heading-font);
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--default-color);
    transition: 0.3s;
    background: var(--accent-color-transparent);
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 10px;
    color: var(--accent-color);
}

.sidebar-nav .nav-link.collapsed {
    color: var(--default-color);
    background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-link:hover {
    color: var(--accent-color);
    background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
    color: var(--accent-color);;
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--default-color);;
    transition: 0.3s;
    text-decoration: none;
    padding: 10px 0 10px 40px;
    transition: 0.3s;
}

.sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
    color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
    background-color: #4154f1;
}
.nav-menu {
    flex: 1;
    padding: 1rem 1rem;
}

.nav-section {
    margin-bottom: 1.5rem;

}

.nav-section h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section a {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;

    border-radius: 6px;
    gap: 0.75rem;
}

.nav-section a:hover {
    background: var(--light);
}

.nav-section a.active {
    background: #e0e7ff;
    color: var(--primary);
}

.nav-section a i {
    width: 1.25rem;
    color: var(--secondary);
}

.nav-section a.active i {
    color: var(--primary);
}

.nav-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}